import request from '@/utils/request'

// 创建推送绑定的id
export function createUserCidBind(data) {
  return request({
    url: '/member/user-cid-bind/create',
    method: 'post',
    data: data
  })
}

// 更新推送绑定的id
export function updateUserCidBind(data) {
  return request({
    url: '/member/user-cid-bind/update',
    method: 'put',
    data: data
  })
}

// 删除推送绑定的id
export function deleteUserCidBind(id) {
  return request({
    url: '/member/user-cid-bind/delete?id=' + id,
    method: 'delete'
  })
}

// 获得推送绑定的id
export function getUserCidBind(id) {
  return request({
    url: '/member/user-cid-bind/get?id=' + id,
    method: 'get'
  })
}

// 获得推送绑定的id分页
export function getUserCidBindPage(query) {
  return request({
    url: '/member/user-cid-bind/page',
    method: 'get',
    params: query
  })
}

// 导出推送绑定的id Excel
export function exportUserCidBindExcel(query) {
  return request({
    url: '/member/user-cid-bind/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
